package cn.steel.mapper;

import cn.steel.domain.entity.Favorite;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface FavoriteMapper {
    Favorite findByUserAndProduct(Long userId, Long productId);
    Favorite findById(Long id);
    List<Favorite> findFavoritesByUserId(Long userId);
    void insertFavorite(Favorite favorite);
    void deleteFavorite(Long id);
}